package com.yanyeori.framework.core.context;

import com.yanyeori.framework.core.util.ThreadLocalUtil;

/**
 * 上下文控制器
 *
 * @author chenkuan 2020/11/24
 */
public class ContextHolder {
    /**
     * 用户上下文
     */
    public static final ThreadLocal<UserContext> USER_CONTEXT_HOLDER = ThreadLocalUtil.createTransmittable("userContext");

    /**
     * 跟踪链路上下文
     */
    public static final ThreadLocal<TraceContext> TRACE_CONTEXT_HOLDER = ThreadLocalUtil.createTransmittable("traceContext");
}
